/* --- VARIABLES & THEME --- */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(26, 26, 26, 0.6);
    --bg-glass: rgba(20, 20, 20, 0.7);
    --gold-primary: #D4AF37;
    --gold-bright: #FFD700;
    --gold-dark: #997A15;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-glass: rgba(212, 175, 55, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- REUSABLE COMPONENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #FFE033, var(--gold-primary));
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #FFF, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.glass-section {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 100px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--gold-primary);
    border-radius: 20px;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

/* --- 1. HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.8) 60%, var(--bg-dark) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    font-size: 5rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- 2. FEATURED CONTENT --- */
.featured-content {
    padding: 80px 5%;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    position: absolute;
}

.carousel-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.content-card {
    flex: 0 0 300px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-glass);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.card-img {
    position: relative;
    width: 100%;
    height: 400px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.play-overlay i {
    font-size: 4rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 10px rgba(19, 19, 18, 0.5));
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.content-card:hover .play-overlay {
    opacity: 1;
}

.content-card:hover .play-overlay i {
    transform: scale(1);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- 3. CATEGORIES SECTION --- */
.categories-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(15,15,15,0.8));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.category-card i {
    font-size: 3.5rem;
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.category-card h3 {
    font-size: 1.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    background: linear-gradient(145deg, rgba(40,40,40,0.9), rgba(20,20,20,0.9));
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.category-card:hover i {
    transform: scale(1.1);
    color: var(--gold-bright);
}

/* --- 4. TRENDING NOW SECTION --- */
.trending-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.trending-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.trending-grid::-webkit-scrollbar {
    display: none;
}

.trending-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 350px;
    height: 200px;
}

.trending-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.trending-item:hover img {
    transform: scale(1.05);
}

.trending-item::after {
    pointer-events: none;
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.trending-info {
    pointer-events: none;
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-info .rank {
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold-primary);
    font-family: var(--font-heading);
}

.trending-info h3 {
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

/* --- 5. ABOUT SECTION --- */
.about-section {
    padding: 100px 5%;
    margin: 80px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat h4 {
    font-size: 2.5rem;
    color: #FFF;
}

.stat span {
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
}

.about-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gold-accent-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.about-visual img {
    width: 250px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* --- 6. SOCIAL MEDIA SECTION --- */
.social-section {
    padding: 80px 5%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 1.1rem;
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-btn.tiktok:hover { background: #00f2fe; color: #000; border-color: #00f2fe; }
.social-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-btn.youtube:hover { background: #FF0000; border-color: #FF0000; }

/* --- 7. CALL TO ACTION --- */
.cta-section {
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.1), transparent);
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.large-btn {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* --- 8. UPCOMING APP SECTION --- */
.app-section {
    padding: 120px 5%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.app-info {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--border-glass);
}

.app-info h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.app-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    gap: 20px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 12px;
    opacity: 0.6;
    cursor: not-allowed;
}

.store-btn i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.btn-text strong {
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.app-mockup {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.app-mockup img {
    max-height: 600px;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* --- 9. FOOTER --- */
.footer {
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 5% 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-column h4 {
    color: #FFF;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.link-column a {
    color: var(--text-muted);
}

.link-column a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .trending-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .trending-item.large {
        grid-column: span 2;
        height: 400px;
    }
    .trending-item:not(.large) {
        height: 300px;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .stats {
        justify-content: center;
    }
    .app-container {
        flex-direction: column;
        text-align: center;
    }
    .store-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .hero-tagline { font-size: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .trending-item.large {
        grid-column: span 1;
    }
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    .app-info h2 { font-size: 2.5rem; }
    .footer-links {
        gap: 40px;
    }
}

/* --- UNIFIED MEDIA CONTROLLER STYLES --- */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}


.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10; /* High z-index to overlay native buttons initially */
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.video-placeholder.hidden,
.video-container.is-playing .video-placeholder {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    z-index: 11; /* Above the placeholder image */
}

.video-placeholder:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold-bright);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* Ensure native player button is not blocked once playing starts */
.video-container.is-playing .play-button-overlay {
    display: none;
}

/* Specific fix for Facebook videos to prevent double play buttons */
.video-container[data-video-type="facebook"] .play-button-overlay {
    display: none;
}

.video-player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below the custom placeholders initially */
}


/* Skeleton Loading State */
.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    display: none;
    z-index: 2;
}

.skeleton-loader.active {
    display: block;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive adjustments for players */
.featured-content .card-img .video-container {
    height: 400px;
}

.trending-item .video-container {
    height: 100%;
}